﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SendMessage.aspx.cs" Inherits="WMS6.Web.Administration.SendMessage" meta:resourcekey="Page"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>SendMessage</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        function confirmMsg(code) {
            if (code == "F4100_001") {
                if (confirm('<%=GetGlobalMsgResource("F4100_001") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
        }
        
        //未选择用户 向 已选择用户增加 
        function NoUserIDs(listSrc)
        {
            var option = document.createElement('option');
            var nIndex = listSrc.selectedIndex;
            if(nIndex>=0)
            {
                var values = listSrc.options[nIndex].value;     
               document.getElementById("<%=hdnYesUserIDs.ClientID %>").value = values;
                 __doPostBack('<%=ImgSub.ClientID.Replace('_','$')%>',''); 
             }
        }
        //已选择用户 向 未选择用户
        function YesUserIDs(listSrc)
        {
            var option = document.createElement('option');
            var nIndex = listSrc.selectedIndex;
              if(nIndex>=0)
             {
                var values = listSrc.options[nIndex].value;   
                document.getElementById("<%=hdnNoUserIDs.ClientID %>").value = values;  
                  __doPostBack('<%=ImgAdd.ClientID.Replace('_','$')%>',''); 
              }
        }
       
    </script>

</head>
<body>
    <form id="F1227" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblMessageInfo" runat="server" CssClass="label_header" Text="消息信息" meta:resourcekey="lblMessageInfo"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="False" Text="<%$ Resources:ButtonResource,btnGoBack %>"
                            CausesValidation="False" OnClick="btnGoBack_Click"/>
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" Text="<%$Resources:ButtonResource,btnNew%>" CssClass="button" 
                            Enabled="False" OnClick="btnNew_Click" />
                    </td> 
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnSave%>"
                            AccessKey="s" OnClick="btnSave_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnSend" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnSend%>"
                            AccessKey="s" OnClick="btnSend_Click" />
                    </td>
                    <td><asp:Button ID="btnDelete" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnDelete%>" 
                             OnClientClick="javascript:if(confirmMsg('F4100_001'))return true; else return false;"
                            onclick="btnDelete_Click"  /></td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
                </div>
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        
                        <table width="710" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td>
                                    <asp:Label CssClass="label" ID="lblMessageTitle" runat="server" Text="消息标题" meta:resourcekey="lblMessageTitle"></asp:Label>
                                </td>
                                <td>
                                    
                                </td>
                                <td rowspan="5">
                                    <div id="con_one_2" runat="server">
                        <table width="350" style="display: block; margin-left: 10px; margin-top: 2px;">
                            <tr>
                                <td width="150">
                                    <asp:Label ID="lblNoUserIDs" runat="server" CssClass="label" Text="未选择用户" meta:resourcekey="lblNoUserIDs"></asp:Label>
                                </td>
                                <td width="50">
                                </td>
                                <td width="150">
                                    <asp:Label ID="lblYesUserIDs" runat="server" CssClass="label" Text="已选择用户" meta:resourcekey="lblYesUserIDs"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="150">
                                    <asp:ListBox ID="lbxNoUserIDs" runat="server" SelectionMode="Multiple" onDblClick="NoUserIDs(this)"
                                        Height="204px" Width="100%" AutoPostBack="True" OnSelectedIndexChanged="lbxNoUserIDs_SelectedIndexChanged"
                                        meta:resourcekey="lbxNoUserIDs"></asp:ListBox>
                                </td>
                                <td width="50" align="center">
                                    <asp:ImageButton ID="ImgSub" runat="server" ImageUrl="~/style/zh/1/images/arrow_r.gif"
                                        OnClick="ImgSub_Click" meta:resourcekey="ImgSub" />
                                    <br />
                                    <br />
                                    <br />
                                    <asp:ImageButton ID="ImgAdd" runat="server" ImageUrl="~/style/zh/1/images/arrow_l.gif"
                                        OnClick="ImgAdd_Click" meta:resourcekey="ImgAdd" />
                                </td>
                                <td width="150">
                                    <asp:ListBox ID="lbxYesUserIDs" runat="server" SelectionMode="Multiple" onDblClick="YesUserIDs(this)"
                                        Height="204px" Width="100%" AutoPostBack="True" OnSelectedIndexChanged="lbxYesUserIDs_SelectedIndexChanged"
                                        meta:resourcekey="lbxYesUserIDs"></asp:ListBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="150">
                                </td>
                                <td width="50">
                                </td>
                                <td width="150">
                                    <input id="hdnNoUserIDs" runat="server" type="hidden"> </input>
                                    <input id="hdnYesUserIDs" runat="server" type="hidden"></input>
                                </td>
                            </tr>
                            <tr>
                                <td width="150">&nbsp;
                                    
                                </td>
                                <td width="50">&nbsp;
                                    
                                </td>
                                <td width="150">&nbsp;
                                    
                                </td>
                            </tr>
                        </table>
                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:TextBox ID="txtMessageTitle" runat="server" CssClass="textbox" Width="320px" Enabled="false"></asp:TextBox><font
                                        class="must_input">*</font>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label CssClass="label" ID="lblMessageContent" runat="server" Text="消息内容" meta:resourcekey="lblMessageContent"></asp:Label>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:TextBox ID="txtMessageContent" runat="server" CssClass="largetextarea" Enabled="false" Height="150px"
                                        TextMode="MultiLine"></asp:TextBox>
                                </td>
                            </tr>
                           
                            <tr height="10px">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <input type="hidden" id="hdnFrom" runat="server" />
         <input type="hidden" id="hdnRowID" runat="server" />
    </div>
    </form>
</body>
</html>
